package com.kykj.kykj.service.impl;

import com.kykj.kykj.dao.ArticlesStarDao;
import com.kykj.kykj.entity.ArticlesStarEntity;
import com.kykj.kykj.service.ArticlesStarService;
import com.kykj.kykj.vo.ArticlesStarVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticlesStarServiceImpl implements ArticlesStarService {
    @Resource
    ArticlesStarDao articlesStarDao;

    @Override
    public List<ArticlesStarEntity> getArticlesStarList() {
        return articlesStarDao.getArticlesStarList();
    }

    @Override
    public int addArticlesStar(ArticlesStarVo articlesStarVo) {
        return articlesStarDao.addArticlesStar(articlesStarVo);
    }


    @Override
    public int delStar(int id) {
        return articlesStarDao.delStar(id);
    }

    @Override
    public int upArticlesStar(ArticlesStarVo articlesStarVo) {
        return articlesStarDao.upArticlesStar(articlesStarVo);
    }
}
